package com.tisumoon.msg.data.bean.receive;

import com.google.gson.annotations.Expose;
import com.google.gson.reflect.TypeToken;
import com.tisumoon.msg.data.abs.AbsReceived;

/**
<pre>
{
    "type": "ya",               
    "fromuid": "1000000751",         //发送过来的对方uid
    "name": "",
    "head": "",
    "sex": 1,
    "distance": 
    "time": 1405312194                //ya时间，注意时间是10位数，精确到秒
}
</pre>
 */
public class Ya extends AbsReceived<Ya> {
	public static final String TYPE_YA	= "ya";

	@Expose
	public long fromuid;
	@Expose
	public String name;
	@Expose
	public String head;
	@Expose
	public int sex;
	@Expose
	public float distance;
	@Expose
	public long time;

	@Override
	public Ya fromJson(String json) {
		return fromJsonWithAllFields(json, Ya.class);
	}

	@Override
	protected String[] typeValues() {
		return new String[]{TYPE_YA};
	}

	@Override
	protected TypeToken<Ya> getTypeToken() {
		return null;
	}
}
